Skip to content

refactor: use cursorStyle property instead of DECSCUSR escapes#9

Merged
oribarilan merged 1 commit into
mainfrom
refactor/cursor-style
May 30, 2026
Merged

refactor: use cursorStyle property instead of DECSCUSR escapes#9
oribarilan merged 1 commit into
mainfrom
refactor/cursor-style

Conversation

@oribarilan

Copy link
Copy Markdown
Owner

Replaces the setInterval that wrote DECSCUSR escape codes (\x1b[2 q / \x1b[6 q) to stdout with direct cursorStyle property writes on the editor widget.

What changed:

  • syncCursorStyle() sets editor.cursorStyle = { style, blinking } instead of raw escape sequences
  • No more process.stdout.write calls for cursor shape
  • Dispose handler simplified (just clears the interval, no stdout reset needed)
  • Test no longer needs the stdout stub

Why:

  • Works in terminals that don't support DECSCUSR (e.g. macOS Terminal.app)
  • Setting a property is cleaner than writing escape codes to stdout on a timer
  • First use of the cursorStyle property on the editor widget, which we confirmed is available at runtime

Also includes: AGENTS.md updated with the full editor widget API surface, BACKLOG.md added, .gitignore updated.

Replace the setInterval that wrote DECSCUSR escape codes to stdout with
direct cursorStyle property writes on the editor widget. Works in
terminals without DECSCUSR support (e.g. macOS Terminal.app) and
eliminates raw stdout writes.

Also updates AGENTS.md with the full editor widget API surface
discovered on currentFocusedEditor, adds BACKLOG.md, and gitignores
.assets/.
@oribarilan oribarilan merged commit 833da20 into main May 30, 2026
1 check passed
@oribarilan oribarilan deleted the refactor/cursor-style branch May 30, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant